package controller;

import dao.MessageDao;

public class MessageController {

    private final MessageDao messageDao = new MessageDao();

    public void addMessage(String fromName, String toName, String message) {
        messageDao.addMessage(fromName, toName, message);
    }

    public String[] getMessages(String fromName, String toName) {
        return messageDao.getMessages(fromName, toName);
    }
}